package com.tencent.examples.blueking.mysql.model;

import com.tencent.examples.blueking.mysql.extend.biz.SuperClassEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * 同步门店时间记录表
 */
@Entity
@Table(name = "bk_job_store_time")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class JobStoreTime extends SuperClassEntity<JobStoreTime> {
    /**
     * 同步时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date jobTime;
    /**
     * 同步状态
     */
    @Column(columnDefinition = "bit default 1")
    private boolean jobStatus;
    /**
     * 星期几
     */
    private Integer dayOfWeekMon1Sun7;
    /**
     * 开店时间点
     */
    private String businessOpenTime;
    /**
     * 闭店时间点
     */
    private String businessCloseTime;
    /**
     * 推送信息
     */
    @Column(columnDefinition = "longtext")
    private String pushMsg;
    /**
     * 返回信息
     */
    @Column(columnDefinition = "longtext")
    private String resultMsg;
    /**
     * 错误信息
     */
    private String errorMsg;
}
